<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$header_charset}>" />
<link href="<{$akurl}>images/admin/admin.css" rel="stylesheet" type="text/css">
<script language="javascript" src="include/common.js"></script>
</head>
<body>
<br>
<table cellspacing="0" cellpadding="0" width="99%" align="center" class="commontable">
<tr>
	<td>
	<table border="0" cellspacing="1" cellpadding="4" width="100%">
		<tr class="header">
			<td colspan="3"><{$lan.specialpage_edit}><iframe name="work" width="0" height="0" src="" style="display:none"></iframe></td>
		</tr>
		<tr>
			<td>
			<br>
			<table width="99%" border="0" align="center" cellpadding="5" cellspacing="1" class="commontable">
			<tr class="header">
				<td colspan="2"><{$lan.specialpage_edit}></td>
			</tr>
			<form name="editpage" action="admincp.php?action=specialpages&id=<{$id}>" method="POST">
			<tr>
				<td><{$lan.pagename}></td>
				<td><input type="text" name="pagename" size="20" value="<{$pagename}>" class="mustoffer" onfocus="must(this)"></td>
			</tr>
			<tr>
				<td><{$lan.template}></td>
				<td><select name="template" class="mustoffer" onfocus="must(this)"><{$str_templates}></select></td>
			</tr>
			<script>
				document.editpage.template.value = '<{$template}>';
			</script>
			<tr>
				<td><{$lan.filename}></td>
				<td><input type="text" name="filename" size="20" value="<{$filename}>" class="mustoffer" onfocus="must(this)"></td>
			</tr>
			<tr>
				<td><{$lan.data}></td>
				<td><{include file="admincp_richtext_editor.htm"}>
				</td>
			</tr>
<{if $forbidautorefresh eq 0}>
			<tr>
				<td><{$lan.timing}></td>
				<td>
<table border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td colspan="2" bgcolor="#EFEFEF"><input type="radio" name="type" value="0"<{if $type eq 0}> checked<{/if}>><{$lan.notiming}></td>
  </tr>
  <tr>
    <td colspan="1" bgcolor="#FFFFFF" width="270"><input type="radio" name="type" value="1"<{if $type eq 1}> checked<{/if}>><{$lan.everyday}><br>
    	<input type="radio" name="type" value="2"<{if $type eq 2}> checked<{/if}>><{$lan.date}>&nbsp;
    		<select name="date">
			<option value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
			<option value="4">4</option>
			<option value="5">5</option>
			<option value="6">6</option>
			<option value="7">7</option>
			<option value="8">8</option>
			<option value="9">9</option>
			<option value="10">10</option>
			<option value="11">11</option>
			<option value="12">12</option>
			<option value="13">13</option>
			<option value="14">14</option>
			<option value="15">15</option>
			<option value="16">16</option>
			<option value="17">17</option>
			<option value="18">18</option>
			<option value="19">19</option>
			<option value="20">20</option>
			<option value="21">21</option>
			<option value="22">22</option>
			<option value="23">23</option>
			<option value="24">24</option>
			<option value="25">25</option>
			<option value="26">26</option>
			<option value="27">27</option>
			<option value="28">28</option>
			<option value="29">29</option>
			<option value="30">30</option>
			<option value="31">31</option>
		</select><br>
    	<input type="radio" name="type" value="3"<{if $type eq 3}> checked<{/if}>><{$lan.timingday}><select name="day">
    		<{foreach key=key item=item from=$lan.weekdays}>
			<option value="<{$key}>"><{$item}></option>
		<{/foreach}>
		</select><br></td>
		<td bgcolor="#FFFFFF">
			<{$lan.timinghour}><input type="text" name="hour" size="3" value="<{$hour}>">(0-23)&nbsp;<br><{$lan.timingminute}><input type="text" name="minute" size="3" value="<{$minute}>">(0-59)
		</td>
  </tr>
  <script language="javascript">
  	document.editpage.type.value = '<{$type}>';
  	document.editpage.date.value = '<{$date}>';
  	document.editpage.day.value = '<{$day}>';
  </script>
  <tr>
    <td colspan="2" bgcolor="#EFEFEF"><input type="radio" name="type" value="4"<{if $type eq 4}> checked<{/if}>><{$lan.timingdistance}><input type="text" name="distance" size="5" value="<{$distance}>">(1-65535)</td>
  </tr>
</table></td>
			</tr>
<{/if}>
			<tr>
				<td colspan="2"><input type="submit" name="saveeditpage" size="20" value="<{$lan.save}>"></td>
			</tr>
			</form>
			</table>
			<br>
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</body>
</html>